<?
    include_once('../classes/class.register.responsible.php');
    
    session_start();
    
    if (isset($_POST['addResponsible']))
    {
        $registerResponsible = new RegisterResponsible();
        
        if($registerResponsible->process())
        {
         echo "<script>loadResponsibles();</script>";
         echo "<script>alert('Encargado agregado satisfactoriamente');</script>";
        }else
            {
             echo '<p class="error">';
             echo '<b>'.$registerResponsible->show_errors().'</b>'; 
             echo '</p>';
            }
    }
?>
